package net.oschina.jhssm.common.help;

import org.flywaydb.core.Flyway;

/**
 * Created by zhaojb on 2017/8/19.
 */
public class FlywayHelp {

    public static void main(String[] args) {
        Flyway flyway = new Flyway();
        flyway.setLocations("classpath:sql");
        flyway.setEncoding("UTF-8");
        flyway.setDataSource("jdbc:mysql://192.168.123.85:3306/jh_ssm?" +
                "user=root&password=qwer1234&useUnicode=true&characterEncoding=UTF8",
                "root", "qwer1234");
        flyway.clean();
        flyway.migrate();
    }
}
